/*
Model file extending Contact interface
 */
package addressBook.model;

/**
 *
 * @author mathieubakrim
 */
public class SimpleContact implements Contact{
   
    private String lastName ="";
    private String firstName ="";
    private String phoneNumber ="";
    private String addressPro ="";
    private String addressPer ="";
    private String homePage ="";
    private String emailPro ="";
    private String emailPer ="";
    private String group ="";
    
    public SimpleContact() {
    }

    /**
     * Constructor
     * @param ln last name
     * @param fn first name
     * @param pn phone number
     * @param ap address pro
     * @param ape address perso
     * @param hp home page
     * @param ep email pro
     * @param epe email  perso
     * @param gr virtual group
     */
    SimpleContact(String ln, String fn, String pn, String ap, String ape, String hp,
            String ep, String epe, String gr) {
        this.lastName = ln;
        this.firstName = fn;
        this.phoneNumber = pn;
        this.addressPro = ap;
        this.addressPer = ape;
        this.homePage = hp;
        this.emailPro = ep;
        this.emailPer = epe;
        this.group = gr;
        
    }
    
    /**
     * toString implementation (test purpose)
     * @return a String formatted simple contact object
     */
    @Override
    public String toString() {
        return "SimpleContact{" + "lastName=" + lastName + ", firstName=" + firstName 
                + ", phoneNumber=" + phoneNumber + ", addressPro=" + addressPro 
                + ", addressPer=" + addressPer + ", homePage=" + homePage 
                + ", emailPro=" + emailPro + ", emailPer=" + emailPer + '}' + ", group=" + group;
    }
           
    //GETTERS
    @Override
    public String getLastName() { return lastName;}
    @Override
    public String getFirstName() { return firstName;}
    @Override
    public String getPhoneNumber() { return phoneNumber;}
    @Override
    public String getGroup() { return group; }
    @Override
    public String getAddressPro() { return addressPro;}
    @Override
    public String getAddressPer() { return addressPer;}
    @Override
    public String getHomePage() { return homePage; }
    @Override
    public String getEmailPro() {return emailPro;}
    @Override
    public String getEmailPer() { return emailPer; }

    
    // SETTERS
    @Override
    public void setEmailPro(String emailPro) {this.emailPro = emailPro; }
    @Override
    public void setEmailPer(String emailPer) {this.emailPer = emailPer;}
    @Override
    public void setGroup(String group) { this.group = group;}
    @Override
    public void setPhoneNumber(String phoneNumber) { this.phoneNumber = phoneNumber;}
    @Override
    public void setAddressPro(String addressPro) { this.addressPro = addressPro; }
    @Override
    public void setAddressPer(String addressPer) { this.addressPer = addressPer;}
    @Override
    public void setHomePage(String homePage) {this.homePage = homePage;}
    @Override
    public void setLastName(String lastName) { this.lastName = lastName;}
    @Override
    public void setFirstName(String firstName) { this.firstName = firstName;}
}
